<?php

namespace app\admin\model\xilujob;

use think\Model;

class JobLocation extends Model
{


    protected $name = 'xilujob_job_location';
    protected $autoWriteTimestamp = 'int';

    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

    public function province() {
        return $this->belongsTo('Area', 'province_id');
    }

    public function city() {
        return $this->belongsTo('Area', 'city_id');
    }

    public function district() {
        return $this->belongsTo('Area', 'district_id');
    }

}
